
function bodyDoOnload(){
	$('#newButton').hide();
}


/******************************************************************
 ************************ EVENT HANDLER ***************************
 ******************************************************************/

/**
 * handles the searching of the maingrid
 */
function handleSearch(value){
	handleFilter();
}


/**
 * handles the action if user check/uncheck a tree node
 * @param 		mixed		node
 * @param 		boolean		checked
 */
function handleNodeCheck(node, checked) {
	handleFilter();
}


/**
 * runs if user makes a double click on a grid row
 * @param		int			index		row index
 * @param		mixed		data		values of each column of the clicked row
 */
function mainGridRowDblClick(index, data) {
	if (data != null)
		loadCustomerAccount(data.id);
}


/******************************************************************
 ************************** SAVING DATA ***************************
 ******************************************************************/


/**
 * handles saving of the order
 * @param		int		customerAccountId
 */
function saveRecord(customerAccountId){
	saveMetainformation(customerAccountId);
}